package com.sicnu.comments.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sicnu.comments.entity.CommentsDO;
import com.sicnu.comments.entity.CommentVO;

import java.util.List;

public interface CommentService extends IService<CommentsDO> {

    List<CommentVO> getTopLevelComments(Integer resourceId);

    List<CommentVO> getRepliesByTopLevelCommentId(Integer topLevelCommentId);

    List<CommentVO> getRepliesByParentCommentId(Integer parentCommentId);

    List<CommentVO> getCommentTree(Integer resourceId);

    CommentsDO addComment(CommentsDO comment);
}